home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer: Getting Started / Internet Surfer - Getting Started (Wayzata Technology)(7231)(1995).bin / pc / textfile / mac_faqs / text_faq < prev    next >
Encoding:
Internet Message Format  |  1995-01-01  |  26.4 KB

  1. Xref: bloom-picayune.mit.edu comp.text:10750 news.answers:4593
  2. Path: bloom-picayune.mit.edu!enterpoop.mit.edu!news.media.mit.edu!micro-heart-of-gold.mit.edu!wupost!uunet!uunet.ca!ecicrl!clewis
  3. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  4. Newsgroups: comp.text,news.answers,comp.answers
  5. Subject: comp.text Frequently Asked Questions
  6. Summary: Discussions on text processing in general, and troff in particular
  7. Keywords: typesetting troff groff ditroff wysiwyg sgml word desktop dwb
  8. Message-ID: <textfaq_724396940@ecicrl>
  9. Date: 15 Dec 92 05:22:34 GMT
  10. Expires: 12 Jan 93 05:22:20 GMT
  11. Reply-To: textfaq@ferret.ocunix.on.ca (Text FAQ commentary reception)
  12. Followup-To: comp.text
  13. Organization: Elegant Communications Inc., Ottawa, Canada
  14. Lines: 595
  15. Approved: news-answers-request@mit.edu
  16. Supersedes: <textfaq_723187334@ecicrl>
  17.  
  18. Archive-name: text-faq
  19. Last-Modified: Wed Dec  9 02:53:12 EST 1992
  20.  
  21.         Frequently Asked Questions for comp.text
  22.                Chris Lewis
  23.             Nils-Peter Nelson
  24.  
  25. (This list was originally compiled by Jaap Akkerhuis, Dick Dunn, Nick
  26. Haines, Steve Harley, Harro Kremer, Chris Lewis, John Macdonald, Bob
  27. Morris, Nils-Peter Nelson, Chip Rosenthal.)
  28.  
  29. If you have comments or additions, please contact Chris Lewis,
  30. textfaq@ferret.ocunix.on.ca (note Reply-to).
  31.  
  32. | Changes are marked with a "|" in left column.  Many newsreaders
  33. | (ie: rn, trn) allow you to search for them with "g^|".
  34.  
  35. Changes this issue: Psroff is now PL14.  A few minor diddles.
  36.  
  37. Questions discussed:
  38.  
  39. General interest:
  40.  
  41.   GN1. What is the difference between word processing, desktop
  42.          publishing, technical publishing, electronic publishing, etc?
  43.   GN2. Which do I need?
  44.   GN3. What is a markup language?
  45.   GN4. What is SGML? ODA?
  46.   GN5. What is WYSIWYG? Do I need it?
  47.   GN6. What is PostScript?
  48.   GN7. What is TeX?
  49.   GN8. What are some popular Desktop Publishing packages?
  50.   GN9. Where can I read more?
  51.  
  52. Specific to troff:
  53.  
  54.   TR1. What is troff? Why are there so many questions about it?
  55.   TR2. How many varieties of troff are there? What are the differences?
  56.   TR3. What are some of the filters for troff output?
  57.   TR4. What other troff printer drivers are there?
  58.   TR5. How do I get my troff to drive my printer?
  59.   TR6. None of the mentioned packages support *my* printer.  Help?
  60.   TR7. How to I embed PostScript in troff?
  61.   TR8. What are fonts?  How do I add fonts?
  62.   TR9. What are width tables?
  63.   TR10. How do I make width tables?
  64.   TR11. What are: pic, eqn, tbl, grap, refer?
  65.   TR12. How do I preview my troff on my screen?
  66.   TR13. I need makedev, but my DWB doesn't come with it.
  67.   TR14. How can I get nroff/troff for DOS?
  68.   TR15. What books can I get about DWB?
  69.  
  70. The discussions below are organized in digest-form, so you may
  71. scan ahead for "^Subject:" to move from one topic to the next
  72. (the ^G command does this in rn), and you may search for "^Subject: GN5"
  73. (for example) to jump to the discussion of a particular question.
  74. (The caret "^" before "Subject" is a convention of regular expressions
  75. that restricts the search to match only at the beginning of a line.)
  76.  
  77. --------
  78. Subject: GN1. What is the difference between word processing, desktop
  79. publishing, technical publishing, electronic publishing, etc?
  80.  
  81. Electronic Publishing is an all-encompassing term that means
  82. using computers (instead of hot lead) to set type for
  83. documents.  Although publishing includes a sequence of
  84. processes right through distribution, EP tends to emphasize
  85. document composition through production of a single master copy.
  86.  
  87. It is helpful to picture a graph with "complexity" along
  88. the X axis and "length" along the Y axis.  Complexity
  89. varies from straight text to footnotes and indexing to
  90. tables to line drawings to gray-scale illustration to
  91. full color.  Length varies from 1 page to 10,000 or more
  92. (better make the Y axis logarithmic!)
  93.  
  94. Word processing dominates the lower left of the graph
  95. (business letters).  Desktop publishing dominates the lower
  96. right (advertising layout).  Host-based text formatters like
  97. troff, TeX and Scribe dominate the upper-left (phone book).
  98. Proprietary systems have traditionally dominated the upper
  99. right (Sears catalog, encyclopedia); these are being supplanted
  100. by hybrids consisting of pieces from the other segments.
  101.  
  102. The middle of the graph is fair ground for everyone but is
  103. increasingly the domain of Technical Publication systems like
  104. Interleaf and FrameMaker.
  105.  
  106. --------
  107. Subject: GN2. Which do I need?
  108.  
  109. Word processors and Desktop publishers are more than adequate
  110. for documents of tens of pages.  Because they are mostly
  111. limited to PC's and Macintosh, they may be impediments in
  112. producing long documents, which would have to be done in
  113. digestible chunks (say, a chapter at a time).  High-end systems
  114. are usually UNIX-based, which means computer power and document
  115. capacity are limited only by how much you want to spend.
  116.  
  117. --------
  118. Subject: GN3. What is a markup language?
  119.  
  120. All formatters need to distinguish the text to be printed
  121. from instructions about how to print; the latter is called
  122. markup.  Procedural markup tells the software what to do
  123. (space down, invoke a macro); generic markup describes the
  124. thing to be printed (heading, cross-reference, etc.)  Troff
  125. and TeX are examples of procedural markups; ODA and SGML
  126. prescribe rules for generic languages; and good macro packages
  127. for troff or TeX make them, more-or-less, generic markup
  128. languages.
  129.  
  130. --------
  131. Subject: GN4. What is SGML? ODA?
  132.  
  133. SGML is the Standard Generalized Markup Language.  SGML is defined
  134. in International Standard ISO 8879:1986.  SGML is a language for
  135. formally describing the structure and contents of documents.  SGML
  136. is also the syntax used by documents so described.
  137.  
  138. SGML is an important move in the direction of separating information
  139. from its presentation, i.e. making different presentations possible
  140. for the same information.  The better macro packages for TeX and
  141. troff attempt to do the same thing.  This is in contrast with WYSIWYG -
  142. see GN5.
  143.  
  144. SGML is more fully discussed in comp.text.sgml.
  145.  
  146. SGML is the name of a directory at the public FTP site ftp.ifi.uio.no
  147. where you can find a (draft) FAQ, a bibliography, and more information.
  148.  
  149. ODA: Office [Open] Document Architecture, takes a similar approach
  150. but stresses blind interchange.  ODA is defined in the multi-part
  151. standard ISO 8613:1988, in the CCITT T.410 series recommendations,
  152. and in ECMA standard 101.
  153.  
  154. --------
  155. Subject: GN5. What is WYSIWYG? Do I need it?
  156.  
  157. What-you-see-is-what-you-get: essential for advertising layout,
  158. but a useless time-waster for a phone book.  WYSIWYG is the
  159. opposite of SGML, in that in SGML you know what something
  160. is (say, a chapter heading) but you don't know what it looks
  161. like; in WYSIWYG you know what it looks like but you don't
  162. know what it is.  The obvious benefit of WYSIWYG is that the
  163. author is aware at all times of the final appearance of the
  164. document; the liability is that the vendor gets to choose the
  165. internal representation of the document, and may not tell you
  166. what it is.  The best trade-off would be a WYSIWYG system with
  167. a well-documented, usable markup language.  We should caution
  168. that few of the self-proclaimed WYSIWYG systems actually show
  169. the exact same thing on screen as you get on a printer:
  170. What You See Is Sort Of Like What You Get.  When 300 dpi,
  171. 17 inch terminals are common true WYSIWYG will be practical.
  172.  
  173. --------
  174. Subject: GN6. What is PostScript?
  175.  
  176. PostScript is a language for output devices.  It does for output
  177. devices what Unix does for processors, viz., it allows a common
  178. software interface despite differences in hardware platform.
  179. PostScript controllers exist for paper printers from 4 pages
  180. per minute up to 92 ppm, from 300 dots per inch to over 6000 dpi
  181. typesetter, and for film recorders, color printers and X Window
  182. terminals.  Without PostScript, every text formatter has to
  183. understand the idiosyncrasies of every vendor's hardware.
  184. See comp.lang.PostScript for more.  PostScript is a registered
  185. trademark of Adobe Corporation.
  186.  
  187. --------
  188. Subject: GN7. What is TeX?
  189.  
  190. TeX is a batch formatter similar to troff developed by Don Knuth
  191. at Stanford.  It is most popular in universities and is freely
  192. traded because of the lack of licensing restrictions. ArborText
  193. sells a commercial version for big and small (ie PC's) machines.
  194. There are various versions for PC-class machines. LaTeX (Leslie
  195. Lamports version of TeX) is a more friendly version of the same
  196. formatter. It does for TeX what macros does for troff.  See
  197. comp.text.tex - which contains a FAQ.
  198.  
  199. Oh, and to save yourself sounding like an idiot, the "eX" in "TeX"
  200. is pronounced as in "deck", not "sex".
  201.  
  202. --------
  203. Subject: GN8. What are some popular Desktop Publishing packages?
  204.  
  205. Aldus practically invented Desktop publishing with "PageMaker".
  206. Ventura is the largest selling of the high-end PC packages.
  207. WordPerfect and Word are lower in functionality but less
  208. expensive and exist on both DOS and Macintosh.
  209. See comp.text.desktop for more information. Interleaf
  210. and FrameMaker are workstation-based and are higher in
  211. price and functionality, and require more substantial
  212. machine resources, but give you more in return.  FrameMaker
  213. is now available for Windows 3.1, giving transportability
  214. between the DOS/Windows, Mac and UNIX world.  See comp.text.desktop,
  215. comp.text.frame and comp.text.interleaf.
  216.  
  217. --------
  218. Subject: GN9. Where can I read more?
  219.  
  220. Publish!, Business Publishing and Seybold Report are all
  221. excellent journals for keeping up to date.  There are
  222. books devoted to most of the major packages, too many
  223. to mention here.
  224.  
  225. Richard Rubinstein's book "Digital Typography", Addison-Wesley
  226. is apparently a readable book that goes into the details of
  227. composition systems, fonts and reproduction.
  228.  
  229. --------
  230. Subject: TR1. What is troff? Why are there so many questions about it?
  231.  
  232. Troff is one of the oldest text formatters in existence. Because
  233. it was distributed as part of the Unix operating system for
  234. many years, it is by default on several hundred thousand machines,
  235. far more than any other Unix text formatter.  It originated
  236. in AT&T Bell Laboratories in 1971 and its author was Joseph
  237. Ossanna.  Its legitimate father was a program called runoff,
  238. written at MIT in the 1960's.
  239.  
  240. Because there is no comp.text.troff, additional questions related
  241. to troff are shown below.  The remainder of the FAQ list is
  242. devoted to troff; bail out now if you are not interested.
  243.  
  244. --------
  245. Subject: TR2. How many varieties of troff are there? What are the differences?
  246.  
  247. The original Ossanna troff generates proprietary printer
  248. codes for the Wang C/A/T Phototypesetter; we'll call this
  249. "CAT Troff".  This version comes bundled in many systems,
  250. in particular, SunOS, most other Berkeley-derived systems,
  251. and is contained in the Xenix Text Processing package.
  252. The AT&T, BSD and Xenix variants all differ slightly, but not
  253. in any important ways.  CAT troff is useless without filters to
  254. convert the "CAT codes" to something else, especially since the
  255. C/A/T is as common as a California condor.  These filters are
  256. described later.
  257.  
  258. In 1981, Brian Kernighan of Bell Laboratories rewrote
  259. troff to generate a generic typesetting language.
  260. These troffs are called "ditroff" (for device-independent troff) and
  261. contain some additional features such as arbitrary line drawing, and
  262. more flexible font handling.  "Documenter's Workbench" (DWB) is
  263. a package containing ditroff and several other typesetting filters.
  264. | The latest AT&T version is DWB 3.3, which sold as source code;
  265. most commercial binary variants (Elan, SoftQuad, Image Network, etc.)
  266. are based on DWB 2.0.  The Free Software Foundation
  267. distributes a re-engineered version of ditroff called groff.
  268.  
  269. If you have a troff and want to know which it is, type:
  270.     troff < /dev/null > /dev/null
  271. If it responds with "typesetter busy" or "No /dev/cat; use -t or -a",
  272. you have CAT troff, otherwise it's ditroff.  If you get an answer from:
  273.     dwbv
  274. you have the AT&T release 3.0 or later.  The differences are too
  275. numerous and subtle to document here, but the variants are about
  276. 95% compatible.  All are ASCII based, but DWB 3.3 and Groff also
  277. accept ISO 8859-1 (aka Latin 1), the Western European character set.
  278.  
  279. --------
  280. Subject: TR3. What are some of the filters for troff output?
  281.  
  282. Psroff is a suite of programs that allow you to translate CAT
  283. troff output or ditroff output format into PostScript, HP Laserjet
  284. (with incremental font downloading) or ditroff.  See description
  285. of hp2pbm below for driving printers other than these three.
  286.  
  287. Psroff works with all versions of CAT troff and ditroff, including
  288. groff.  Psroff allows you to change fonts on the fly (unlike any other
  289. CAT troff converter).  Psroff has been used to drive HP Laserjet and clone
  290. printers, PostScript (including Display PostScript and Sun Pageview),
  291. X windows previewers (such as xditview and xtroff), Ghostscript and
  292. many others.
  293.  
  294. Psroff comes with a large suite of utility programs that allow you to
  295. create, manipulate, display HP Laserjet and PostScript fonts, as well as
  296. construct width tables for these fonts from a variety of sources, including
  297. TeK PK format, HP SFP, and PostScript.  Psroff also comes with a number of
  298. other utilities, such as PostScript page reordering, Ascii-2-PostScript
  299. converters etc.  Psroff 3.0 is the only troff HP Laserjet filter fully
  300. | supporting scalable fonts or HPGL/2 graphics on HP LJ III printers.
  301.  
  302. Psroff 3.0 is capable of performing some limited emulation of ditroff
  303. features (eg: line drawing) with CAT troff.
  304.  
  305. | Psroff 3.0 is available from comp.sources.unix, volume 24.  Or from
  306. | ftp.uunet.ca, in /distrib/chris_lewis/psroff (fully patched).  Patch
  307. | level 14 is current.  The author is Chris Lewis, clewis@ferret.ocunix.on.ca.
  308.  
  309. Adobe Transcript is a commercial package similar to psroff, in that it
  310. contains filters for converting ditroff or CAT troff.  But only to
  311. PostScript.  It also contains filters for Ascii-2-PostScript, and
  312. is often installed as part of SunOS printcap filters.  Adobe Transcript
  313. contains a user interface script called "psroff" which should not be
  314. confused with the other psroff (but often is).  Information can be
  315. acquired on its availability by contacting Adobe.  Supports psfig
  316. with a little hacking (instructions in psfig release)
  317.  
  318. The groff package from the Free-Software-Foundation includes drivers
  319. for PostScript, DVI, X and constant-width printers, and the complete
  320. suite of troff preprocessors with the exception of grap.  It is available
  321. via anonymous ftp from several sources (it needs the FSF C++ or AT&T
  322. C++ 2.0 compilers to compile, but many binary versions are also available
  323. for FTP).  Supports character kerning (unlike CAT troff or DWB).  Does not
  324. contain an HP Laserjet driver.  A "dvi2lj" or psroff 3.0 can be used as a
  325. HP Laserjet driver for groff.  Groff has made some slight changes
  326. in the ditroff and width table formats, so use with non-groff drivers
  327. may need a little fiddling.  Written by James Clark.  The latest
  328. version is 1.06.  The latest version can always be ftped from
  329. prep.ai.mit.edu:pub/gnu.
  330.  
  331. --------
  332. Subject: TR4. What other troff printer drivers are there?
  333.  
  334.     - thack: CAT to PostScript.   c.s.u. archives.
  335.       For very casual use only.  Has no width tables, and can't,
  336.       for example, make tbl box corners line up.)  Available from
  337.       c.s.u archives.  Very simple to build/install.
  338.  
  339.     - tpscript: ditroff to PostScript (reasonably good filter)
  340.       c.s.u archives.  Does not support psfig.
  341.  
  342.     - jetroff: ditroff to HP Laserjet (no support for III scalable
  343.       fonts).  Commercial version (jetroff 2) no longer available.
  344.       Jetroff 1.0 (shareware) is available from c.s.m archives.
  345.       Author: Rick Richardson.  Would need some fiddling to work
  346.       with groff.
  347.  
  348.     - troff2lj: CAT troff to HP Laserjet.  Limited font handling
  349.       functionality - package discontinued by author when psroff
  350.       2.0 was released.
  351.  
  352.     - lcat/lroff: obsolete, should be junked, precursor to psroff.
  353.  
  354.     - hp2pbm: not a troff-2-something filter per-se.  However,
  355.       given a HP Laserjet driver, hp2pbm can convert HP Laserjet
  356.       codes to Jef Poskanzer's PBM format, which permits you
  357.       to use any of the many output formats supported by PBM.
  358.       Author: Chris Lewis and Klaus Schallhorn.  Hp2pbm and PBM+
  359.       are accessible from c.s.m archives.  Hp2pbm includes a
  360.       24 pin Epson driver and a built-in G3 FAX driver.
  361.     
  362.     - cat2desk is a version of lcat/lroff modified to work with
  363.       Deskjets.  Psroff will work with newer deskjets (especially
  364.       scalable font ones with PCL4), but not older ones (the font
  365.       format is different) which are PCL3.
  366.  
  367. --------
  368. Subject: TR5. How do I get my troff to drive my printer?
  369.  
  370.     a) If you already have CAT troff and you don't need pic or grap:
  371.  
  372.        Your best bet is psroff if you want to drive printers supported
  373.        by psroff (PostScript, HP Laserjet, ditroff filters, PBM+
  374.        supported devices (including Epson 24 pin, FAX).  Transcript
  375.        is an alternative for PostScript output (but doesn't
  376.        allow you to mount fonts, no drawing support).
  377.  
  378.     b) You already have ditroff:
  379.  
  380.        You may already have a driver for your printer.  Check.
  381.        If not, your best bets are jetroff, psroff, tpscript,
  382.        transcript.
  383.     
  384.     c) You don't have a troff or, you have CAT troff and you need pic
  385.        and grap:
  386.  
  387.        Get "a DWB", such as groff (no grap), DWB 3, or one of the
  388.        commercial variants.
  389.  
  390. --------
  391. Subject: TR6. None of the mentioned packages support *my* printer.  Help?
  392.  
  393. This area is not entered into lightly. Look for a commercial
  394. or free package that supports your device.  Failing that, try
  395. to acquire (legally!) the source code for another device and
  396. modify it.  The AT&T documentation "Troff User's Manual" has
  397. a Reference section that completely documents the ditroff
  398. language.  SunOS and Psroff 3.0 documentation contain
  399. descriptions of the CAT troff language.  Psroff 3.0 is
  400. designed for drop-in drivers, and may be the easiest to
  401. extend.  Coupled with hp2pbm, psroff3.0 can probably drive
  402. just about any kind of printer that supports raster graphics
  403. with relatively little trouble (see Epson 24 pin driver for
  404. guidance).
  405.  
  406. If you can get a PostScript driver and are running on current
  407. SunOS, you could consider developing a NeWSprint driver for
  408. your printer. NeWSprint is Sun's NeWS (PostScript language
  409. interpreter extended for driving displays; not the same thing
  410. as "Display PostScript"(tm).  This may be easier than developing
  411. a troff driver, since all NeWSprint really needs is the ability to
  412. send a bitmap to a printer. Source and developer's documentation are
  413. shipped standard with NeWSprint.
  414.  
  415. Thack is ideal for quick hacks with CAT troff for printers that
  416. have dynamically scalable fonts (aside from the fact that thack
  417. has no facilities for building width tables).
  418.  
  419. --------
  420. Subject: TR7. How to I embed PostScript in troff?
  421.  
  422. There are two methods:
  423.  
  424.     - including "absolute" PostScript.  PostScript that knows where
  425.       it goes on the page, and decides its own scaling.
  426.       All versions of ditroff support this one way or another.
  427.       CAT troff does as well when coupled with psroff.  This is
  428.       most often supported by some permutation of \! or \X'...'
  429.       directives.
  430.  
  431.     - including PostScript, automatically scaling and placing the
  432.       image.  This requires that the PostScript be EPS (so that the
  433.       size and origin of the image is accessible).  Groff and
  434.       DWB 3.3 have facilities for including EPS files and automatically
  435.       placing/scaling them on the page, including leaving space in the
  436.       troff text for the image.
  437.  
  438.       Psfig (c.s.u archives) is a troff preprocessor which will permit
  439.       this sort of automatic placement/scaling with an older version
  440.       of ditroff (such as DWB 2.1) as long as the backend printer driver
  441.       understands it.  Psroff 3.0 and Adobe Transcript support psfig with
  442.       ditroff, but only Psroff 3.0 will support psfig with CAT troff.
  443.  
  444. Caution: many PC and MAC graphics packages generate sloppy PostScript which
  445. cannot be gracefully included in other documents.
  446.  
  447. --------
  448. Subject: TR8. What are fonts?  How do I add fonts?
  449.     
  450. A font is a set of characters in an specific typeface.  Unlike
  451. TeX, troff does not consider the same typeface at different
  452. sizes to be different fonts.
  453.  
  454. You have to make the width tables, install them, and tell the
  455. troff filter how to emit/request the fonts.  The details differ
  456. from one package to another.  Check the documentation.
  457.  
  458. --------
  459. Subject: TR9. What are width tables?
  460.  
  461. Both CAT troff and ditroff need to know the width of each character
  462. that you use.  The widths of each character (along with some additional
  463. characteristics) are arranged in a file for each font.  There are
  464. basically five different width table formats:
  465.  
  466.     1) CAT troff: uses a binary table of 224 unsigned chars.
  467.     2) MIPS (and RISC/Ultrix) CAT troff uses an ASCII dump of (1)
  468.     3) DWB 2.x and several of the commercial variants use an ASCII
  469.        format that is compiled into a binary form by a special program
  470.        called "makedev".
  471.     4) DWB 3.x uses the ASCII format mentioned in (3) - doesn't need
  472.        to be compiled.
  473.     5) Groff uses the ASCII format mentioned in (4) with minor variations.
  474.  
  475. If the width tables are wrong, character spacing will look funny - up
  476. to and including overlapping characters, and broken right justification.
  477.  
  478. --------
  479. Subject: TR10. How do I make width tables?
  480.  
  481. Creating them is not hard.  Getting the actual metrics sometimes is.
  482.  
  483. The AT&T documentation "Troff User's Manual" describes the DWB width
  484. table format.  Your DWB may already have a manual page for it.
  485.  
  486. Psroff 3.0 contains documentation on DWB and CAT troff format width
  487. tables.
  488.  
  489. DWB 3.3, Psroff 3.0 and tpscript each have a utility for automatically
  490. creating width tables by sucking the data out of a PostScript device.
  491.  
  492. Psroff 3.0 and jetroff have utilities for creating width tables from
  493. HP laserjet fonts.
  494.  
  495. Psroff 3.0 can convert between any of the 5 width table formats.
  496.  
  497. Consult the documentation to find out where to put the files.
  498.  
  499. --------
  500. Subject: TR11. What are: pic, eqn, tbl, grap, refer?
  501.  
  502. These are the basic troff preprocessors shipped with DWB:
  503.  
  504.     - pic allows you to draw arbitrary line-drawing graphics in a
  505.       machine-independent fashion.
  506.     - eqn allows you to construct mathmatical equations.
  507.     - tbl provides a mechanism for specifying and displaying
  508.       automatically sized/configured tables 
  509.     - grap uses pic to construct graphs.
  510.     - refer provides a mechanism for searching for and formatting
  511.       bibligraphic references.
  512.  
  513. Neither pic nor grap are included with CAT troff, but eqn, tbl and
  514. frequently refer are present.  Groff does not at present support grap.
  515.  
  516. --------
  517. Subject: TR12. How do I preview my troff on my screen?
  518.  
  519.     a) X windows: xditview and xtroff (X11R5 contrib directory, xtroff
  520.        also from ftp.cs.toronto.edu) and gxditview (from groff) will
  521.        preview ditroff format (groff requires gxditview), including
  522.        psroff 3.0's ditroff output from CAT troff.
  523.     b) Display PostScript (ie: AIX 3 & DEC dpsexec, NeXT,
  524.        Sun Pageview, Ultrascript): any PostScript generating
  525.        troff.  (Theoretically at least.  May need a teensy bit
  526.        of PostScript hacking to get a reasonable pager (psroff3.0
  527.        has this built in).  Pageview and Ultrascript have some
  528.        limitations so may not work with a specific PostScript
  529.        generator)
  530.     c) Others: You can probably find a PBM converter for it,
  531.        so use a Laserjet-generating troff configuration plus hp2pbm.
  532.        (eg: Sun rasters, 3b1 screens, EGA, VGA, GIFF, TIFF etc.)
  533. |       I preview on X by generating PCL with psroff, converting
  534. |       to PBM with hp2pbm, then display with pbm2Xd (part of hp2pbm)
  535. |       and xwud (part of X windows).
  536.     d) Others: You may be able to find a DVI driver for it,
  537.        so use a DVI-generating troff configuration (namely,
  538.        groff's ditdvi) and use the appropriate dvi2<whatever> filter.
  539.  
  540. --------
  541. Subject: TR13. I need makedev, but my DWB doesn't come with it.
  542.  
  543. A freeware version called "mkfont" is available from c.s.m, and
  544. is also included in Jetroff 1.0.  The Jetroff version is to be
  545. preferred because it's been extended a bit more to be an exact
  546. "makedev" replacement w.r.t. command line arguments.
  547.  
  548. --------
  549. Subject: TR14. Nroff/Troff on DOS machines
  550.  
  551. Arto Viitanen (av@ohdake.cs.uta.fi) has used djgpp (the MSDOS port of
  552. gcc 2.01) to compile groff-1.05 for MSDOS. The binaries are available
  553. at garbo.uwasa.fi in /pc/unix. The file is groff396.zip and it's 725 Kb.
  554. This apparently works quite well, and has been used to process
  555. manuscripts in excess of 400 pages.
  556.  
  557. Elan, Image Network, and SoftQuad have commercial versions of DWB
  558. for DOS machines.  They tend to be a bit pricey - in the $500-$1200
  559. range.
  560.  
  561. There are many freeware versions of nroff that have either already
  562. been ported, or should be easy to port to DOS.  For example, C
  563. implementations of Kernighan and Plauger's "Software Tools" "roff"
  564. (see Ozan Yigit's implementation available from comp.sources.unix).
  565. [roff isn't a complete implementation of nroff, depends on what
  566. you need.]
  567.  
  568. Related: Ghostscript can be used on DOS to preview the output of any
  569. PostScript-producing application, including groff.  If you do use
  570. GhostScript, make sure that you get the latest version with the good
  571. fonts.  GhostScript also contains CGA and VGA drivers for on-screen
  572. preview.
  573.  
  574. I'd appreciate any other leads on DOS nroff/troffs.
  575.  
  576. --------
  577. Subject: TR15. What books can I get about DWB?
  578.  
  579. General:
  580.  
  581.     Document Formatting and Typesetting on the UNIX System,
  582.     2 volumes, Nerain Gehani, Silicon Press, ISBN 0-9615336-2-5.
  583.     A very good general reference; covers troff, the preprocessors,
  584.     and most of the popular macro packages.
  585.  
  586.     Typesetting Tables on the UNIX System, Henry McGilton, Mary McNabb.
  587.     Trilithon Press, ISBN 0-9626289-0-5.  A very good, very complete
  588.     reference and tutorial on TBL.
  589.  
  590.     Unix Text Processing, Dale Dougherty & Tim O'Reilly, Hayden Books,
  591.     ISBN 0-672-46291-5.  A good discussion not just of troff (ms & mm),
  592.     tbl, eqn, and pic, but also vi and ex, sed, and awk.
  593.  
  594.     Troff typesetting for Unix Systems, Sandra L. Emerson & Karen Paulsell
  595.     (kjp@well?) Prentice-Hall, 0-13-930959-4.  This is a good book
  596.     for people wishing to write raw troff (as in rolling your own
  597.     macros)
  598.  
  599.     troff-Programmierung: proffessionelle Textverarbeitung und
  600.         Schriftsatz unter UNIX, Claus Schirmer, Hanser Verlag 1990,
  601.         ISBN 3-446-15649-6.  Reportedly a superb book on troff
  602.     programming.  Ie: a ms-like macro package is built in a
  603.     step-by-step way.  Don't know if there's non-German language
  604.     version.
  605.  
  606.     The UNIX Text Processing System, Kaare Christian, Wiley, 1987.
  607.     Is especially good on REFER, the best chapter on REFER
  608.     available.
  609. -- 
  610. Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
  611. Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
  612. Ferret list: ferret-request@ferret.ocunix.on.ca
  613.